<% if logged_in? && @blog.user.id == current_user.id %>
<div style="float: right;">
  <%= link_to image_tag("/images/update_blog.png"), edit_blog_path(@blog) %>
</div>
<% end %>

<%= render :partial => 'blogs/blog', :object => @blog %>
<hr class="comments"/>
<%= render :partial => 'blog_comments/blog_comment', :object => @blog %>